﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using App.Model.Enum;
using SqlSugar;
namespace App.Model
{
    public class Role:BaseId
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        [SugarColumn(ColumnDataType ="nvarchar(12)")]
        public string Name { get; set; }
        /// <summary>
        /// 角色描述
        /// </summary>
        [SugarColumn(ColumnDataType = "nvarchar(50)")]
        public string Description { get; set; }
        /// <summary>
        /// 角色类型
        /// </summary>

        [SugarColumn(IsNullable = true)]
        public EnumUserRoleType RoleType { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateAt { get; set; }
        [SugarColumn(IsNullable = true)]
        public DateTime UpdateAt { get; set; }
    }
}
